import request from '@/utils/axios';

/**
 * 获取通知分页
 * @param params 
 * @returns 
 */
export interface PageVo {
  page: number;
  pageSize: number;
}

export function getNotificationApi(params: PageVo) {
  return request({
    url: '/getNotificationPage',
    method: 'get',
    params
  });
}

/**
 * 删除通知
 * @param params 
 * @returns 
 */
export function deleteNotificationApi(params: { id: number }) {
  return request({
    url: '/deleteNotification',
    method: 'delete',
    params
  });
}

/**
 * 删除通知
 * @param params 
 * @returns 
 */
export function createNotificationApi(data: any) {
  return request({
    url: '/createNotification',
    method: 'post',
    data
  });
}